<?php

class Application_Form_OcenaForm extends Zend_Form
{

    public function init()
    {
        $this->setMethod('post');

        $this->addElement('text', 'opis', array(
            'label'      => 'Komentar',
            'required'   => false,
            'class'      => 'form-control',
            'id'         => 'query'
        ));

        $this->addElement('select', 'ocena', array(
            'label'                     => 'Ocena',
            'required'                  => true,
            'class'                     => 'form-control',
            'id'                        => 'ocena',
            'registerInArrayValidator'  => false,
            'multiOptions'              => array(1 => '1', 2 => '2', 3 => '3', 4 => '4', 5 => '5')
        ));

        $this->addElement('hidden', 'produktid', array(
            'required'   => true,
            'class'      => 'form-control',
            'id'         => 'produktid'
        ));

        $this->addElement('submit', 'submit', array(
            'label'    => 'Pošlji',
            'class'      => 'form-control'
        ));


        $this->setAttrib('class', 'form-group');
    }


}

